<template>
	<view>
		<view class="header status_bar" :class="scrrol == true ? 'scrrolHeader' : ''">
			<view class="back iconfont icon-xiangzuo1" @tap="backTo()"></view>
			<view class="text" :class="scrrol == true ? 'scrrolHeader' : ''">强险查询</view>
		</view>
		<view class="bg_box">
			<image class="bg01" src="/static/bg05.png" mode="widthFix"></image>
			<view class="bg_content">
				<view class="main">
					<view class="ceng">
						<view class="hao">车信盟报告检查</view>
						<view class="note">目前业内公认最权威、最准确、大事故展现最好的出险报告，查得和准确率99.9%</view>
					</view>
					<view class="kuai">
						<view class="list">
							<view class="left">
								<view class="red">*</view>
								<view class="text">行驶证图片</view>
							</view>
							<view class="right">证件图完整清晰无遮挡</view>
						</view>
						
						<u-upload :fileList="fileList6" @afterRead="afterRead" @delete="deletePic" name="6" multiple
							:maxCount="1" width="280" height="200">
							<image :src="img_path" style="align-self: center;width: 280px; height: 200px;" mode="widthFix" ></image>
						</u-upload>
						
						<view class="list">
							<view class="left">
								<view class="red">*</view>
								<view class="text">车架号</view>
							</view>
							<view class="right">什么是车架号（VN）号</view>
						</view>
						<view class="box">
							<input type="text" v-model="vinstr" placeholder="请输入17位车架号" />
						</view>

					</view>
				</view>

				<view class="confirm sub" @click="confirm_order()" >立即查询</view>
			</view>
		</view>

         <u-modal :show="show" @confirm="model_com" :content="content" @close="model_act"></u-modal>
          <helang-compress ref="helangCompress"></helang-compress>
	</view>
</template>

<script>
	import up_mins from '@/lib/mixin/up1_mixin.js';
	export default {
		mixins: [up_mins],
		data() {
			return {
				page: 1,
				scrrol: false,
				fileList6: [],
				agree: false,
				stype : 3, //交强
				vinstr : '',
				img_path : '',
			}
		},
		onLoad() {
			let order = uni.getStorageSync('car_order3');
			this.order = order;
			if(order?.img_path){
				this.img_path = this.realUrl(order.img_path);
			}
			this.vinstr = this.order.vin;
		},
		onUnload() {
			uni.setStorageSync('car_order3','');
		},
		methods: {
			setRule(e) {
				let that = this;
				let index = e.currentTarget.dataset.index;
				that.flowList[index].tick = !that.flowList[index].tick
			},

		},
		onPageScroll: function(Object) {
			if (Object.scrollTop > 28) {
				this.scrrol = true;

			} else if (Object.scrollTop < 28) {
				this.scrrol = false;
			}
		},
	
	}
</script>

<style lang="scss">
	/deep/.u-upload{
			 align-items: center !important;
	}
	.header {
		background-color: transparent !important;
	}
	.header .text {
		background-color: transparent !important;
		color: #333 !important;
	}
	.scrrolHeader {
		background-color: #F9E9E3 !important;
	}
	.bg_box {
		width: 100%;
		position: relative;
	}
	.bg_box .bg01 {
		width: 100%;
	}
	.bg_box .bg_content {
		width: 92%;
		position: absolute;
		left: calc(50% - 46%);
		top: calc(13.5vw + var(--status-bar-height));
		z-index: 98;
	}
	.main {
		width: calc(100%);
		background-color: #fff;
		padding: 7vw 4vw;
		height: 30vw;
		border-radius: 3vw;

		.img {
			width: 20%;
			float: right;
		}
		.ceng {
			position: absolute;
			z-index: 1;
			width: 80%;
			.title {
				color: #0d172d;
				font-size: 4vw;
				font-weight: bold;
			}
			.note {
				color: #828792;
				font-size: 3.5vw;
				margin-top: 2vw;
			}
			.hao {
				color: #0d172d;
				font-size: 3.5vw;
				font-weight: bold;
				margin-top: 1vw;
			}
		}
		.kuai {
			background-color: #fff;
			border-radius: 3vw;
			width: 100%;
			position: absolute;
			padding: 4vw;
			left: 0;
			top: 35vw;
			display: flex;
			flex-direction: column;
			.list {
				display: flex;
				justify-content: space-between;
				align-items: center;
				height: 12vw;
				padding: 0vw 3vw;
				font-size: 3.5vw;
				.left {
					display: flex;
					.red {
						color: #fc0505;
						margin-right: 2vw;
					}
					.text {
						color: #0d172d;
					}
				}
				.right {
					color: #999;
				}
			}
			.upload {
				margin-left: calc(50% - 150px);
			}
			.box {
				width: 92%;
				margin: auto;
				input {
					border-bottom: 1px solid #dfdfe0;
					font-size: 3.5vw;
					height: 10vw;
					line-height: 10vw;
				}
			}

		}
	}
	.check {
		border: 2rpx solid #FFCC32;
		width: 22vw;
		text-align: center;
		height: 8vw;
		line-height: 8vw;
		border-radius: 8vw;
		font-size: 3.5vw;
		color: #d8a407;
		position: absolute;
		left: calc(50% - 10vw);
		top: 128vw;
	}
	.agree {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 3.5vw;
		color: #999999;
		position: absolute;
		left: 0;
		bottom: 150rpx;
		.a_icon {
			font-size: 5vw;
			color: #C8C8C8;
			padding-right: 20rpx;
			padding-top: 1rpx;
		}
		.a_icon_s {
			color: #267BFA;
		}
		.a_txt {
			display: flex;
			align-items: center;
			.a_t2 {
				color: #257BF9;
			}
		}
	}
	.confirm02 {
		background-color: #FFCC32;
		color: #12161D;
		width: 92%;
		margin: 5vw auto 0;
		text-align: center;
		font-size: 4vw;
		height: 12vw;
		line-height: 12vw;
		border-radius: 12vw;
		font-weight: bold;
		position: absolute;
		left: 4%;
		bottom: 30rpx;
	}
</style>